package com.lz.demo.log.log4j;

import com.lz.demo.log.log4j.subpackage.SubPackageTest;
import org.apache.log4j.Logger;

/**
 * 日志级别从高到低：fatal、error、warn、info、debug、trace
 * 另外，还有 off 和 all 表示关闭和记录所有日志
 */
public class Log4jToLog4j2Test {
    final static  Logger LOGGER = Logger.getLogger(Log4jToLog4j2Test.class);
    public static void main( String[] args ) {
        LOGGER.trace("log4j trace print");
        LOGGER.debug("log4j debug print");
        LOGGER.info("log4j info print");
        LOGGER.warn("log4j warn print");
        LOGGER.error("log4j error print");
        LOGGER.fatal("log4j fatal print");

        SubPackageTest.test();
    }
}
